<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="crm.model.Product_model"%>
<%@ page import="crm.control.ProductControl"%>
<%@ page import="crm.model.Product_system_stage"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>product_model_update</title>
  </head>
  
  <body>
    <%
       request.setCharacterEncoding("UTF-8");
       int id=Integer.parseInt(request.getParameter("id"));
       
       Product_model productModel=new Product_model();
       productModel=ProductControl.getProductModelById(id);
     %>
     <form action="product_model_update_do.jsp?id=<%=id %>" method="post">
        <table>
          <tr><td>模块编号：</td><td><input type="text" name="model_number" value="<%=productModel.getModel_number() %>"/></td></tr>
          <tr><td>模块名称：</td><td><input type="text" name="model_name" value="<%=productModel.getModel_name() %>"/></td></tr>
          <tr><td>所属系统：</td><td><select name="product_model_system_product_id">
  <% 
      HashMap product_model_system_product_id=Product_system_stage.getAllProductSystemStage();
      Iterator it=product_model_system_product_id.entrySet().iterator();
      while(it.hasNext()){
         Map.Entry entry=(Map.Entry)it.next();
         %>
         <option value="<%=entry.getKey()%>"><%=entry.getValue()%></option>
         <%
      }
  %></select></td></tr>
  <tr><td>开发部门：<input type="text" name="product_model_develope_department" value="<%=productModel.getDevelope_depart() %>"/></td></tr>
  <tr><td>开发人     ：<input type="text" name="product_model_developer" value="<%=productModel.getDeveloper() %>"/></td></tr>
  <tr><td>价   格       ：<input type="text" name="product_model_price" value="<%=productModel.getPrice() %>"/></td></tr>
  <tr><td>创建时间：<input type="text" name="product_model_create_time" value="<%=productModel.getCreate_time() %>"readonly/></td></tr>
  <tr><td>描          述：<input type="text" name="product_model_description" value="<%=productModel.getDescription() %>"/></td></tr>
  <tr><td><input type="submit" value="提交" name="submit2"/>
          <input type="reset" value="重置" name="reset2"/></td></tr>
        </table>
     </form>
  </body>
</html>
